home *** CD-ROM | disk | FTP | other *** search
- Path: news.widomaker.com!usenet
- From: alas@widomaker.com ( )
- Newsgroups: comp.lang.c++
- Subject: Re: Newbie question
- Date: 15 Apr 1996 17:18:41 GMT
- Organization: Widomaker Communication Services
- Message-ID: <4ku0di$pfh@news2.widomaker.com>
- References: <4kq1d5$253@ginger.lei.net> <4kq1k1$253@ginger.lei.net>
- NNTP-Posting-Host: pm1-22.wmbg.widomaker.com
- Mime-Version: 1.0
- X-Newsreader: WinVN 0.93.14
-
- In article <4kq1k1$253@ginger.lei.net>, sidmvl@pixi.com says...
- >
- >oops Email address was messed up it is corrected now. Thanks.
- >
- >I just started a C++ class in school, and I was writing my first
- project. I
- >have to include a char, double, int, and a string. The program compiled
- just
- >fine, but when I run the program I get a fatal error that says I have a
- float
- >overflow. I know I must be missing something extremely basic, but the
- help
- >files were no help. The input was digit with two decimal places. I
- used the
- >following statement to define the precision.
- >cout.setf(ios::showpoint);
- >cout.precision (4);
- >
- >Any help would be appreciated.
- >
- >Everyone was once a Newbie........I think.
- If you are using Borland you may have to explicitly link in floating
- point code...try the -ff at the command line
-
-